/**
 * 字符画，画U
 */
#include <bits/stdc++.h>
using namespace std;

using llt = long long;
using pii = pair<int, int>;
using pll = pair<llt, llt>;
using vi = vector<int>;
using vvi = vector<vi>;
using int128 = __int128_t;

vector<string> S = {
    "*..*", "*..*", "*..*", ".**.", 
};

int main(){
#ifndef ONLINE_JUDGE
    freopen("z.txt", "r", stdin);
#endif
    ios::sync_with_stdio(0); cin.tie(0); cout.tie(0);
    int n; cin >> n;
    for(int k=0;k<3;++k){
        auto & s = S[k];
        for(int j=0;j<n;++j){
            for(auto ch : s){
                for(int i=0;i<n;++i) cout << ch;
            }
            cout << endl;
        }
    }
    for(int i=1;i<=n;++i){
        string s;
        for(int j=0;j<i;++j) s += '.';
        s += string(n, '*');
        for(int j=0;j<n-i;++j) s += '.';
        cout << s;
        reverse(s.begin(), s.end());
        cout << s << endl;
    }
    return 0;
}

